﻿@using Gpsys.Web.Common
@model Gpsys.Web.Models.WorkflowEntityModel
@{
    ViewBag.Title = "Workflow";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section jsFooter{
    <script type="text/javascript" src="@Url.Content("~/Content/js/gps/workflow.js")"></script>

    <script type="text/javascript">
        window.prettyPrint && prettyPrint();
    </script>

}
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span>@ViewBag.FormTitle</span>
    </div>
     <div class="mws-panel-toolbar">
        <div class="btn-toolbar">
            <div class="btn-group">
                <a href="@Url.Action("Edit", "Workflow", new {@Id = Model.Workflow.Id})" class="btn"><i class="icol-pencil"></i> Edit</a>
                <a href="@Url.Action("Delete", "Workflow", new { @Id = Model.Workflow.Id })" class="btn delete-class"><i class="icol-delete"></i> Delete</a>
            </div>
        </div>
    </div>
    <div class="mws-panel-body no-padding">
        @using (Html.BeginForm("None", "Workflow", FormMethod.Post, new { @class = "mws-form" }))
        {            
            <div class="mws-form-inline">
                <div class="mws-form-row">
                    <label class="mws-form-label">
                        Code</label>
                    <div class="mws-form-item small">
                        @Model.Workflow.Code
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">
                        Description</label>
                    <div class="mws-form-item large">
                        @Model.Workflow.Description
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">
                        Xml</label>
                    <div class="mws-form-item large">

                        <pre class="prettyprint linenums theme-balupton lang-xml">
@Model.Workflow.Xml.FormatXml()
                        </pre>

                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">
                        Created By</label>
                    <div class="mws-form-item large">
                        @Model.Workflow.CreatedBy
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">
                        Created On</label>
                    <div class="mws-form-item large">
                        @Model.Workflow.CreatedOn
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">
                        Modified By</label>
                    <div class="mws-form-item large">
                        @Model.Workflow.ModifiedBy
                    </div>
                </div>
                <div class="mws-form-row">
                    <label class="mws-form-label">
                        Modified On</label>
                    <div class="mws-form-item large">
                        @Model.Workflow.ModifiedOn
                    </div>
                </div>
            </div>
            
        }
    </div>
</div>


